home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 11
/
Mac Magazin and MacEasy Magazine CD - Issue 11.iso
/
Sharewarebibliothek
/
Entwickler
/
CDEF-DeBugger 2.0 ƒ
/
splash.c
< prev
next >
Wrap
Text File
|
1995-05-31
|
994b
|
41 lines
#define SPLASH_WINDOW 128
// prototypes
void CreateMySplashWindow( void );
/****************************************************************************
This is a simple little procedure for displaying my stupid looking
splash screen. It's used when a user selects "about" in the apple
menu.
*****************************************************************************/
void CreateMySplashWindow( void )
{
DialogPtr splash_dialog;
GrafPtr oldPort;
short itemHit, iType;
Handle iHandle;
Rect iRect;
splash_dialog = GetNewDialog( SPLASH_WINDOW, 0, (WindowPtr)-1 );
GetPort( &oldPort );
SetPort( splash_dialog );
// simple procedure to frame the 'ok' button
GetDItem( splash_dialog, 1, &iType, &iHandle, &iRect );
PenSize( 3, 3 );
InsetRect( &iRect, -4, -4 );
FrameRoundRect( &iRect, 16, 16 );
do {
ModalDialog( 0, &itemHit );
switch( itemHit ) {
case ok:
break;
}
} while( itemHit != 1 );
DisposeDialog( splash_dialog );
SetPort( oldPort );
}